<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class Article extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('article',function(Blueprint $table){
            $table->increments("id")->comment("文章ID");
            $table->integer("author")->comment("作者");
            $table->integer("thumbs")->comment("缩略图");
            $table->string("title")->comment("文章标题");
            $table->string("description")->comment("描述");
            $table->integer("categroy")->comment("分类");
            $table->text("content")->comment("内容");
            $table->integer("hits")->comment("热度");
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
